#ifndef __RECTTOPOLAR_H
#define __RECTTOPOLAR_H
#include<math.h>

#define RAD_TO_DEG (180/(4*atan(1)))//pi=4*atan(1)	

typedef struct polar_y{
double magnitude;//与极点的距离
double angle;//角度
}POLAR_V;
 
typedef struct rect_v{
double x;
double y;
}RECT_V;

POLAR_V rect_to_polar(RECT_V rv);			    
#endif
